import { request } from '@/utils/request/request';
import { RequestEnum } from '@/enums/httpEnum';

export const attractionsApi = {
  attractionsList: '/attractions/list',
  attractionsDetail: '/attractions/detail',
} as const;

export const getAttractionsList = (params: API.attractionsListRequest) => {
  return request({
    url: attractionsApi.attractionsList,
    method: RequestEnum.GET,
    params,
  });
};
